package com.gxa.service;

import com.gxa.common.JsonResult;
import com.gxa.common.R;
import com.gxa.pojo.Goods;
import com.gxa.pojo.Purchase;
import com.gxa.pojo.Store_House;
import com.gxa.pojo.Supply;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author: wangyifan
 * @Date: 2021/12/02 11:32
 * @Description: $end$
 * @Version: V1.0
 */
public interface PurchaseSellStockService {
    R queryGoods(Integer currentPage, Integer pageSize);

    R addGoods(Goods goods);

    R updateGoods(Goods goods);

    R queryGoodsType(Integer gt_pno);

    R addGoodsTypeGt_pno(String gt_name);

    R addGoodsTypeGt_name(String gt_pno, String gt_name);

    R updateGoodsTypeGt_pno(Integer gt_id, String gt_name);

    R updateGoodsTypeGt_name(Integer gt_id, String gt_pno, String gt_name);

    R deleteGoodsType(Integer gt_id);

    R queryPurchase(Integer currentPage, Integer pageSize);

    R addPurchase(Purchase purchase);

    R deletePurchase(Integer pur_id);

    R querySupply(Integer currentPage, Integer pageSize);

    R addSupply(Supply supply);

    R searchSupply(String su_name,Integer su_cooperation,String  su_contact,String su_phone,String su_tel,String su_fax,String su_we,String su_qq,String su_email,String su_web,String su_pro,String su_city,Date add_date01,Date add_date02);

    R deleteSupply(Integer su_id);

    R updateSupply(Supply supply);

    R queryStoreHouse();

    R addStoreHouse(Store_House storeHouse);

    R updateStoreHouse(Store_House storeHouse);

    R deleteStoreHouse(Integer sh_id);

    R querySalesRecord(Integer currentPage, Integer pageSize);

    R queryPayment();

    JsonResult searchGoods(String gt_pno,String gt_name,String goods_name,String goods_descript,String goods_barcode,Integer currentPage,Integer pageSize);

    R deleteGoods(Integer goods_id);

    R batchDeleteGoods(List<Integer> goods_idList);

    R searchSupply2(String string);

    JsonResult countDataBase(String database);
}
